#pragma once

#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <easyx.h>
#include <math.h>
#include <windows.h>
#include <conio.h>
#include <stdbool.h>
#define XIAO_FRAMES 7
#define BEAR_FRAMES 11


void putTransparentImage(int x, int y, const IMAGE* mask, const IMAGE* img);

void control_motion(int* x, ExMessage* msg, int* direction, int* vx);

void gameloop(LARGE_INTEGER* startCount, LARGE_INTEGER* endCount, LARGE_INTEGER* F);

void flipImage(IMAGE* pImage);